package com.zl.dao;

import com.zl.beans.MeetRoom;
import com.zl.beans.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeetRoomDao {
    //查询总记录数
    int findRows();
    //分页查询
    List<MeetRoom> selectRooms(Page<MeetRoom> page);
    //按名称查询
    List<MeetRoom> selectRoomsByName(String name);
    //添加会议室
    void insertRoom(@Param("roomName") String roomName, @Param("roomContent") String rppmContent);
    //按Id修改会议室信息
    void updataRoom(@Param("roomName") String roomName, @Param("roomContent") String roomContent, @Param("id") int id);
    //按Id查找会议室
    MeetRoom findRoomById(Integer id);
    //按Id删除会议室
    void delectRoomById(Integer id);

    /*List<MeetRoom> selectRoomsName(Page<MeetRoom> page, String name);*/
}
